package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 会员签到记录表
 * </p>
 *
 * @author wpdcn
 * @since 2020-09-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("member_sign_in_record")
@ApiModel(value="MemberSignInRecordEntity对象", description="会员签到记录表")
public class MemberSignInRecordEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "会员id")
    @ApiModelProperty(value = "会员id")
    private String memberId;

    @Column(comment = "签到日期")
    @ApiModelProperty(value = "签到日期")
    private LocalDate signDate;

    @Column(comment = "奖励积分数")
    @ApiModelProperty(value = "奖励积分数")
    private Double score;

    @Column(comment = "创建时间")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @Column(comment = "连续签到天数")
    @ApiModelProperty("连续签到天数")
    private Integer continueSignInDays;


}
